#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    int n;
    scanf("%d", &n);
    int num = 1;
    for (int i = 1; i <= n; i++) {
        num *= i;
    }
    printf("%d", num);
    return 0;
}